Flexible ureteroscope with intelligent control of renal pelvic pressure